package edu.sctu.practice.class01.zhoumengxue.test.test12;

/**
 * Created by ASUS on 2015/10/20.
 */
public class Car {

    public int number;
    public String color;
    public int load;

    public Car(int number) {

        this.number = number;
    }

    public Car(String color) {
        this.color = color;
    }

    public Car(int number, int load, String color) {
        this.color = color;
        this.number = number;
        this.load = load;
    }

    public void upSpeed() {
        System.out.println("汽车正在加速！");
    }

    public void downSpeed() {
        System.out.println("汽车正在减速！");
    }

    public void stop() {
        System.out.println("汽车已经停下！");
    }

}
